@model Blogs.LazyFox.Models.BlogModel

@{
    ViewData["Title"] = Model!.Title;
}

<h1>@Html.DisplayFor(model => model.Title)</h1>

<small style="color: gray;">作者:</small>
<a asp-controller="Person" asp-action="Check"
    asp-route-Id="@Model.AuthorId">@Html.DisplayFor(model=>model.Author.UserName)</a>
<p style="color: gray;">
    <small>标签:</small>
    @if (Model.Tags != null)
    {
        @foreach (var tag in Model.Tags)
        {
            <span>
                #@Html.DisplayFor(modelItem => tag.Name)
            </span>

        }
    }
    <a asp-action="Stick" asp-route-bid="@Model.Bid">+</a>
</p>


<hr />
<div id="mytinymce">

    @Html.DisplayFor(model=>model.Article)
</div>



<script type="text/javascript">
    var temp = document.getElementById("mytinymce")
    document.getElementById("mytinymce").innerHTML = temp.innerText || temp.textContent;
    temp = null
</script>
